import request from '@/utils/request'

export default {
  initShopgoodsList(params){
    /** 获取商品详情 **/
    let data = {
      catId:params.catId,
      pagesize: params.pagesize,
      currentPage: params.currentPage
    }
    return request({
      url: '/shopGoods/goodsByCatIdPro',
      method: 'post',
      data
    })
  },
  /** browseRecord.vue --- 开始 **/
  /** 获取商品浏览信息 **/
  getBorwseRecordInfosById(){
    return request({
      url: '/shopBrowseRecord/infos',
      method: 'post',
    })
  },
  deleteBorwseRecordInfosByUserId(){
    return request({
      url: '/shopBrowseRecord/deleteByUserId',
      method: 'post',
    })
  },
  /** 删除商品浏览信息 **/
  deleteBorwseRecordInfosById(params){
    let data = params;
    return request({
      url: '/shopBrowseRecord/data/deleteByIds',
      method: 'post',
      data
    })
  }
  /** browseRecord.vue --- 结束 **/
}
